<?php
/* @var $this EventController */
/* @var $model Event */
/* @var $form bootstrap.widgets.TbActiveForm */
?>


<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

		<?php echo $form->textFieldRow($model,'id',array('class'=>'span3')); ?>

		<?php echo $form->textFieldRow($model,'name',array('class'=>'span3','maxlength'=>255)); ?>

		<?php echo $form->textFieldRow($model,'slug',array('class'=>'span3','maxlength'=>255)); ?>

		<?php echo $form->labelEx($model,'startTime'); ?>
		<?php $this->widget('application.extensions.timepicker.EJuiDateTimePicker',array(
			    'model'=>$model,
			    'attribute'=>'startTime',
			    'options'=>array(
					'dateFormat' => 'yy-mm-dd',
					'timeFormat' => 'hh:mm:ss',
					'changeMonth' => true,
					'changeYear' => true,
					'yearRange' => 'c-1:c+10',
				),
			));  
		?>
        <?php echo $form->error($model,'startTime'); ?>

		<?php echo $form->labelEx($model,'endTime'); ?>
		<?php $this->widget('application.extensions.timepicker.EJuiDateTimePicker',array(
			    'model'=>$model,
			    'attribute'=>'endTime',
			    'options'=>array(
					'dateFormat' => 'yy-mm-dd',
					'timeFormat' => 'hh:mm:ss',
					'changeMonth' => true,
					'changeYear' => true,
					'yearRange' => 'c-1:c+10',
				),
			));  
		?>
        <?php echo $form->error($model,'endTime'); ?>

		<?php echo $form->dropDownListRow($model,'locationId',$model->getLocationOptions()); ?>
	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
		    'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>'Search',
		)); ?>
	</div>

<?php $this->endWidget(); ?>

